﻿package  {
	import com.kerry.util.StringUtil;
	import flash.display.Sprite;
	/**
	 * com.kerry.util.StringUtil 类的演示文件
	 * @author PhoenixKerry（http://blog.sina.com.cn/yyy98）
	 */
	public class StringUtilDemo extends Sprite {
		
		public function StringUtilDemo() {
			var str:String = "         Hello, how are you?        ";
			trace("=====" + StringUtil.ltrim(str) + "====="); //=====Hello, how are you?        =====
			trace("=====" + StringUtil.rtrim(str) + "====="); //=====         Hello, how are you?=====
			trace("=====" + StringUtil.trim(str) + "====="); //=====Hello, how are you?=====
			trace(StringUtil.stringHasValue(str)); //true
			trace(StringUtil.isEmail("yyy98yangwei@sina.com"));// true
		}
	}
	
}